import React from 'react';
import { Link } from 'react-router';


class Hello extends React.Component{

  constructor() {
    super();
  }

  componentDidMount() {

  }
  renderLink() {
    let a = Math.floor(Math.random()*50);
    console.log(`getting: ${a}!`);
    let content = `<a href="#/world/${a}">Hello React 单页应用程序</a>`
    return <div dangerouslySetInnerHTML={{__html:content}}></div>
  }

  render() {
    return(
      <div>
        {this.renderLink()}
      </div>
    )
  }
}

Hello.a = 1;

export default Hello;
// module.exports = Hello;
